package lottery;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 经营者银行账户信息
 * @author liuding,2012-4-19
 *
 * $LastChangedDate$
 * $Author$ 
 */
@Table
@Entity
public class BankAccountConfig
{
    private int id;
    private int bankId;
    private String bankName;
    private String cardNo;
    private String accountName; //账户姓名
    private String mail;
    private String note; //备注信息
    
    @Column(length=20)
    public String getAccountName()
    {
        return accountName;
    }
    public void setAccountName(String accountName)
    {
        this.accountName = accountName;
    }
    public int getBankId()
    {
        return bankId;
    }
    public void setBankId(int bankId)
    {
        this.bankId = bankId;
    }
    @Column(length=30)
    public String getBankName()
    {
        return bankName;
    }
    public void setBankName(String bankName)
    {
        this.bankName = bankName;
    }
    @Column(length=30)
    public String getCardNo()
    {
    	if(cardNo != null){
    		if(!cardNo.contains("*")){
    			cardNo = "*"+cardNo;
    		}
    	}
        return cardNo;
    }
    public void setCardNo(String cardNo)
    {
    	if(cardNo != null){
    		if(!cardNo.contains("*")){
    			cardNo = "*"+cardNo;
    		}
    	}
        this.cardNo = cardNo;
    }
    @Id
    @GeneratedValue
    public int getId()
    {
        return id;
    }
    public void setId(int id)
    {
        this.id = id;
    }
    @Column(length=1000)
    public String getNote()
    {
        return note;
    }
    public void setNote(String note)
    {
        this.note = note;
    }
	public void setMail(String mail) {
		this.mail = mail;
	}
	@Column(length=50)
	public String getMail() {
		return mail;
	}
    
}
